package com.zzz.demo.dao;

import com.ccpp.demo.entity.User;
import org.apache.ibatis.annotations.Select;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

	List<User> getUser();
	
	List<User> getUserByPage(Map map);

	User getUserByUserName(String userName);

	Set<String> getRoleByUserName(String userName);

	Set<String> getPermissionByUserName(String userName);
	
	List<Map<String,Object>> getEmailById(int i);

	@Select("select * from user where id = #{id,jdbcType=INTEGER}")
    User getUserById(int id);
}